<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="applicable-device" content="pc" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta http-equiv="Cache-Control" content="no-transform" />
<title>${informationEntity.title }</title>
<meta name="keywords" content="${informationEntity.abstractContent }" />
<meta name="description"
	content="${informationEntity.abstractContent } " />
<link href="<%=path%>/css/common1.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=path%>/js/jquery-1.12.4.min.js"></script>
<script src="js/slide.js" type="<%=path%>/text/javascript"></script>
<link href="http://img.pccoo.cn/meishi/css2/sub.css" rel="stylesheet"
	type="text/css" />
<script type="text/javascript" src="<%=path%>/js/jquery-form.js"></script>

<!--  uediter begin -->
<script type="text/javascript" charset="utf-8"
	src="<%=path%>/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8"
	src="<%=path%>/ueditor/ueditor.all.min.js"></script>
<!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
<!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
<script type="text/javascript" charset="utf-8"
	src="<%=path%>/ueditor/lang/zh-cn/zh-cn.js"></script>
<style>

.label_input {
	font-size: 25px;
}

.form_div {
	margin: 10px 20px;
}

input[type='text'],input[text=pasword],textarea{
	border:1px solid #D6D6D6;
	height: 30px;
	width:100%;
	line-height: 19px ;
	font-size: 13px;
	border-radius:5px;
}

textarea{
	height:60px;
	resize:none;
	overflow:auto;
	width:100%;
}
input[type='text']:hover,input[text=pasword]:hover,textarea:hover{
	border-color:#006699;
}
input[type='text']:focus,input[text=pasword]:focus,textarea:focus{
	border-color:#0099ff;
	outline-style: none;
}

.btn_b {
	border: none;
	padding: 5px 20px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 16px;
	margin: 4px 2px;
	cursor: pointer;
}

.btn_error {
	background-color: #f44336;
	color: black;
}

.btn_primary {
	background-color: #e7e7e7;
	/* background-color: #008CBA;  blue
		background-color: #f44336; 红色
		background-color: #555555; black
		background-color: #4CAF50; green */
	color: black;
}
</style>
<script type="text/javascript">
	$(function() {
		//实例化编辑器
		//建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
		var ue = UE.getEditor('disheDetail');
	});
<%-- 	$(function(){
		$('#food_form').ajaxForm(function(data){
			if (data.result) {
				window.location.href="<%=path %>/business/home";
			}else{
				alert(data.error_msg);
			}
		});
	}); --%>
	
</script>

</head>

<body>
	<!--头部-->
	<jsp:include page="../include/head.jsp">
		<jsp:param value="content" name="head" />
	</jsp:include>

	<!--导航-->
	<jsp:include page="../include/nav.jsp">
		<jsp:param value="content" name="nav" />
	</jsp:include>


	<div class="h10"></div>
	<div class="h10"></div>
	<!--美食推荐-->
	<div id="tuijian">
		<div class="form_div">
			<form class="m-t" id="food_form" role="form" method="post" enctype="multipart/form-data"
				action="<%=path%>/business/saveFood">
				<div class="form-group">
					<p class="label_input">美食名称：</p>
					<div class="h10"></div>
					<input type="text"
						class="text_input" id="name" name="name" placeholder="美食名称">
				</div>
					<div class="h10"></div>
					<div class="h10"></div>
				<div class="form-group">
				
				<p class="label_input">美食简介：</p>
				<div class="h10"></div>
					<textarea class="form-control" style="resize:none;" rows="4"
						id="summary" name="summary"
						placeholder="美食简介,100字以内" ></textarea>
				</div>

				<div class="h10"></div>
				<div class="h10"></div>
				<div class="form-group">
					<p class="label_input">详细介绍：</p>
					<div class="h10"></div>
					<script id="disheDetail" type="text/plain" name="disheDetail"
						style="width:100%;height:300px;"></script>
				</div>
				<div class="h10"></div>
				<div class="h10"></div>
				<div class="form-group">
					<p class="label_input">单价：</p>
					<div class="h10"></div>
					<input type="text"
						class="text_input" id="price" name="price" placeholder="单价">
				</div>				
				<div class="h10"></div>
				<div class="h10"></div>
				<div class="form-group">
					<p class="label_input">大图介绍：(400*300)</p>
					<div class="h10"></div>
					<input type="file"  name="picFile" id="picFile" class="file" value="" accept="image/jpg,image/jpeg,image/png,image/bmp" />
				</div>				
				<div class="h10"></div>
				<div class="h10"></div>
				<div class="content btn_group">
					<button class="btn_b btn_primary" type="submit">发&nbsp;&nbsp;布</button>
				</div>
			</form>
		</div>
	</div>

<script src="<%=path %>/js/imgUp.js"></script>
</body>
</html>
